package com.shuoyue.ycgk.ui.papergroups.freedom;

import android.os.Bundle;

import com.shuoyue.ycgk.entity.PaperSet;
import com.shuoyue.ycgk.entity.Type;
import com.shuoyue.ycgk.ui.papergroups.BaseFragmentPaperGroup;
import com.shuoyue.ycgk.ui.papergroups.realpaper.FragmentRealPaper;
import com.shuoyue.ycgk.ui.papergroups.set.SetInfoActivity;

public class FragmentFreedom extends BaseFragmentPaperGroup {


    public static FragmentFreedom getInstance(Type type, boolean isMine, int queryType) {
        FragmentFreedom fragment = new FragmentFreedom();
        fragment.title = type.getName();
        Bundle bundle = new Bundle();
        bundle.putSerializable("type", type);
        bundle.putBoolean("isMine", isMine);
        bundle.putInt("queryType", queryType);

        fragment.setArguments(bundle);
        return fragment;
    }


    @Override
    protected void onItemClick(PaperSet paperSet) {
        FreedomInfoActivity.start(mActivity, paperSet.getId(),type.getSubjectTypeId());
    }

    @Override
    protected void initData() {
        super.initData();

    }

}
